package com.library.lms.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder(toBuilder = true)
public class Books {
    private Long id;

    private String bookName;

    private String bookAuthor;

    private String bookRemark;

    private Integer bookNum;

    private String bookType;

    private Integer bookPrice;

    private String image;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate createTime;
}
